package org.helgoboss.terminal_commandlet

import org.helgoboss.osgi_additions._
import org.helgoboss.terminal.Terminal
import org.helgoboss.shell.Shell
import org.helgoboss.commandlet.Commandlet
import org.helgoboss.launchlet.Launchlet


class TerminalCommandletActivator extends OsgiContext with OsgiServiceWatcher with OsgiProvider {
    whenBundleActive {
        whenServicesPresent[Terminal, Shell] {
            new TerminalCommandlet(_, _).providesService[Commandlet, Launchlet]
        }
    }
}